<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        /* html的编程字符串的可以外面是双引号，内部是单引号
                                                                                                        或者外面是单引号，内部是双引号 */
        var str = "welcome come 'to' \n JavaScript";
        var strs = 'welcome to "to" \\ JavaScript';

        // JavaScript中的换行需要使用转义字符 
        /* 
         \n  换行
         \\  斜杠
         \'  单引号
         \"" 双引号
         \t   tab
         \b   空格
         */


        console.log(str);
        console.log(strs);
    </script>


    <script>
        //获取字符串长度
        var str = 'welcome to javascript'
        console.log(str.length);

        var number = 20;
        //判断类型
        console.log(typeof str);
        console.log(typeof number);


        const f = {

        }
    </script>
</head>

<body>

</body>

</html>